#include "BotException.h"


BotException::BotException(EXCEPTION_TYPE except): _exceptionType(except)
{
}


BotException::~BotException(void)
{
}

const char* BotException::what() const throw() {
	switch(_exceptionType) {
	case EXCEPTION_INVALID_INDEX:
		return "INVALID INDEX";
		break;
	case EXCEPTION_EMPTY:
		return "EMPTY";
		break;
	case EXCEPTION_DATE_INVALID:
		return "INVALID DATE";
		break;
	case EXCEPTION_TIME_INVALID:
		return "INVALID TIME";
		break;
	case EXCEPTION_ATTRIBUTE_INVALID:
		return "INVALID ATTRIBUTE";
		break;
	case EXCEPTION_UNDO_INVALID:
		return "INVALID UNDO";
		break;
	case EXCEPTION_REDO_INVALID:
		return "INVALID REDO";
		break;
	case EXCEPTION_COMMAND_INVALID:
		return "INVALID COMMAND";
		break;
	case EXCEPTION_NAME_INVALID:
		return "INVALID NAME";
		break;
	case EXCEPTION_START_END_CONFLICT:
		return "START TIME AFTER END TIME";
		break;
	default:
		return "UNKNOWN EXCEPTION";
	}
}